import request from '@/js/request'

export default {
  // 用户产品列表接口
  queryProductList: params => request({
    method: 'GET',
    url: '/frontend/user/product/list',
    params
  }),
  // 用户工作台产品详情接口
  queryProductDetail: params => request({
    method: 'GET',
    url: '/frontend/user/product/show',
    params
  }),
  // 产品添加接口
  addProduct: data => request({
    method: 'POST',
    url: '/frontend/user/product/add',
    data
  }),
  // 产品更新接口
  updateProduct: data => request({
    method: 'PUT',
    url: '/frontend/user/product/update',
    data
  }),
  // 产品删除接口
  delProduct: data => request({
    method: 'DELETE',
    url: '/frontend/user/product/delete',
    data
  }),
  // 产品红人列表接口
  queryProductInfluencerList: params => request({
    method: 'GET',
    url: '/frontend/user/product/influencer/list',
    params
  }),
}